package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.IServeProviderService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 服务机构端注册接口
 *
 * @author ljc
 * @version V1.0
 * @date 2025-03-28 10:14
 */
@RestController("openRegisterController")
@RequestMapping("/open/serve-provider")
@Api(tags = "服务机构端注册接口")
public class RegisterController {
    @Resource
    private IServeProviderService serveProviderService;

    /**
     *  机构注册
     * @param institutionRegisterReqDTO
     */
    @PostMapping("/institution/register")
    public void institutionRegister(@RequestBody InstitutionRegisterReqDTO institutionRegisterReqDTO) {
        serveProviderService.institutionRegister(institutionRegisterReqDTO);
    }
}
